/* 修复分页组件下拉菜单在Edge等浏览器中的显示问题 */

/* 强制Element Plus下拉菜单显示 */
.el-select-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    /* 确保下拉内容可见 */
    .el-scrollbar, 
    .el-select-dropdown__wrap {
      display: block !important;
    }
    
    /* 确保列表项显示 */
    .el-select-dropdown__item {
      display: block !important;
    }
  }
  
  /* 调整下拉菜单定位，避免偏移问题 */
  .el-select__popper {
    position: absolute !important;
    z-index: 3000 !important; /* 提高层级 */
    
    /* 重置transform以防止定位问题 */
    &.el-popper[data-popper-placement^=bottom] {
      margin-top: 12px !important;
    }
  }
  
  /* 针对分页特定修复 */
  .el-pagination {
    .el-select {
      .el-input {
        width: 110px !important;
        
        /* 确保下拉图标可点击和可见 */
        .el-input__suffix {
          pointer-events: auto !important;
          opacity: 1 !important;
          visibility: visible !important;
          display: flex !important;
        }
      }
    }
    
    /* 修复下拉菜单的弹出位置 */
    .el-select .el-select-dropdown {
      /* 强制显示在正确位置 */
      top: 32px !important;
      left: 0 !important;
      transform: none !important;
      margin-top: 4px !important;
    }
  }
  
  /* 自定义下拉菜单样式 */
  .el-pagination__sizes {
    .el-select-dropdown__item {
      padding: 0 15px !important;
      height: 34px !important;
      line-height: 34px !important;
    }
  }
  
  /* 确保点击下拉框的任何部分都能触发打开菜单 */
  .el-pagination .el-select .el-input {
    cursor: pointer !important;
    
    .el-input__wrapper {
      cursor: pointer !important;
    }
    
    .el-input__inner {
      cursor: pointer !important;
    }
  }
  
  /* 更强大的浏览器特定修复 */
  @media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Chrome/Edge/Safari 特定修复 */
    .el-pagination .el-select .el-popper {
      position: absolute !important;
      display: block !important;
    }
  }
  
  @supports (-ms-ime-align: auto) {
    /* Edge 特定修复 */
    .el-pagination .el-select .el-popper {
      position: absolute !important;
      display: block !important;
    }
  }